/*
 *    Copyright (c) 2023 李伟国
 *    moyu is licensed under Mulan PSL v2.
 *    You can use this software according to the terms and conditions of the Mulan PSL v2.
 *    You may obtain a copy of Mulan PSL v2 at:
 *             http://license.coscl.org.cn/MulanPSL2
 *    THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *    See the Mulan PSL v2 for more details.
 */

package cn.moyu.service;

import cn.moyu.entity.KettleDatabaseInfo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 数据源连接信息
 */

public interface IKettleDatabaseInfoService extends IService<KettleDatabaseInfo> {
    /**
     * 获取数据源列表
     * @param name 数据源名称
     * @return 结果
     */
    Page<KettleDatabaseInfo> getListPage(String name);

    /**
     * 连接测试
     * @param databaseInfo 数据源信息
     * @return 结果
     */
    String connectTest(KettleDatabaseInfo databaseInfo);
}
